import httpInstance from "@/utils/https";

export function getTopCategoryAPI(id) {
    return httpInstance({
        url:'/category',
        params:{id}
    })
}


// 获取到二级面包屑的数据
export function getCategoryFilterAPI(id) {
    return httpInstance({
        url:'/category/sub/filter',
        params:{id}
    })
}




// 获取二级分类商品列表
export function getSubCategoryAPI(data) {
    return httpInstance.post('/category/goods/temporary',data)
}